package com.wm.ad_navi_new.skin

import android.view.View

class SkinItem {

    /**
     * 换肤View
     */
    lateinit var view: View

    /**
     * 换肤View对应的换肤属性
     */
    var attrs: MutableList<AbstractSkinAttr> = mutableListOf()

    /**
     * 换肤操作
     */
    fun apply() {
        if (attrs.isEmpty()) {
            return
        }
        for (at in attrs) {
            at.apply(view)
        }
    }

}